<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>近期新闻</title>
 <link rel="stylesheet" href="css/bootstrap.min.css" />
 <link href="font-awesome/css/font-awesome.css" rel="stylesheet" />
 <link href='http://fonts.useso.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
<style>
   body{
  background:none repeat scroll 0 0 #2E363F;
  font-family:'Open Sans', sans-serif;
  color:#666;
  font-size:12px;
  
 }
.widget-box{
/*  margin:20px auto;
 */ align:center;
 
}

a{
 display:block;
 width:100%;
}
 img{
  display:block;
  max-width:100%;
  margin:10px auto;
  
 }
 
 .widget-content{
  text-align:center;
 }
 span{
  display:block;
 }
</style>
</head>
<body>
<div class="container-fluid"> 
 <div class="row-fluid">
  <div class="span12">
  <c:forEach var="news" items="${requestScope.newss }">
   <div class="widget-box">
    <div  class="widget-content">
     <a href="<%=request.getContextPath() %>/news?method=mobile&page=read&id=${news.id}">
      <img alt="" src="${news.firstimgurl}">
      <span>${news.title }</span>
     </a>
    </div>
   </div>
   <hr>
  </c:forEach>

  </div>
 </div>

</div>

</body>
</html>